package com.sxfq.loansupermarket.backsystem.common.persistence.model;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;

/**
 * <p>
 * 渠道表
 * </p>
 *
 * @author stylefeng
 * @since 2017-07-11
 */
public class PayService extends Model<PayService> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 排序
     */
    private Integer num;
    /**
     * 父部门id
     */
    private Integer pid;
    /**
     * 父级ids
     */
    private String pids;
    /**
     * 全称
     */
    private String payservicename;
    /**
     * 全称
     */
    private Double payserviceprice;
    /**
     * 提示
     */
    private String remarks;
    /**
     * 版本（乐观锁保留字段）
     */
    private Integer version;

    public String getPayservicename() {
        return payservicename;
    }

    public void setPayservicename(String payservicename) {
        this.payservicename = payservicename;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    public Integer getPid() {
        return pid;
    }

    public void setPid(Integer pid) {
        this.pid = pid;
    }

    public String getPids() {
        return pids;
    }

    public void setPids(String pids) {
        this.pids = pids;
    }

    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }

    public Integer getVersion() {
        return version;
    }

    public void setVersion(Integer version) {
        this.version = version;
    }

    public Double getPayserviceprice() {
        return payserviceprice;
    }

    public void setPayserviceprice(Double payserviceprice) {
        this.payserviceprice = payserviceprice;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "Dept{" +
                "id=" + id +
                ", num=" + num +
                ", pid=" + pid +
                ", pids=" + pids +
                ", payservicename=" + payservicename +
                ", payserviceprice=" + payserviceprice +
                ", remarks=" + remarks +
                ", version=" + version +
                "}";
    }
}
